package com.woniuxy.commons.service;

import com.woniuxy.commons.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "AUTH")
public interface FeignAuthService {
    @GetMapping("/auth/perms/{username}/{perms}")
    public ResponseResult hasPerms(@PathVariable("username") String username, @PathVariable("perms") String perms);
}
